#include<stdio.h>

int main()
{
    int k;
    scanf("%d", &k);
    double s = 0;
    int n = 1;
    while(s <= k)
    {
        s += 1.0 / n;
        n ++;
    }
    printf("%d\n", n - 1);
    return 0;
}
/*

*/